#ifndef EDITFOODWINDOW_H
#define EDITFOODWINDOW_H

#include <QWidget>
#include "Food.h"
#include "FoodTable.h"

namespace Ui {
class EditFoodWindow;
}

class EditFoodWindow : public QWidget
{
    Q_OBJECT

public:
    explicit EditFoodWindow(QWidget *parent = nullptr);
    ~EditFoodWindow();
    void init(Food food);   //加载食物界面

signals:
    void dataChange();

private slots:
    void on_edit_btn_clicked();

private:
    Ui::EditFoodWindow *ui;
};

#endif // EDITFOODWINDOW_H
